package com.tjetc.service.impl;

import com.tjetc.dao.CitiesMapper;
import com.tjetc.domain.City;
import com.tjetc.domain.CityNoId;
import com.tjetc.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CitiesMapper citiesMapper;

    @Override
    public List<City> findAllCity() {
        return citiesMapper.findAllCity();
    }

    @Override
    public List<CityNoId> findAllCityNoId() {
        return citiesMapper.findAllCityNoId();
    }
}
